"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Created by liuhe on 2016/11/30.
 */
('use strict');
const mongoose = require("mongoose");
let platformInfoSchema = new mongoose.Schema({
    logo: String,
    storeRightNav: Boolean,
    SEO: {
        des: String,
        keywords: String //SEO关键字
    },
    thirdPartyCode: String,
    imageDefinitionRadio: Number //图片压缩比例
});
//申明 schema
let GlobalSetupSchema = new mongoose.Schema({
    uid: { type: String, required: true },
    systemCode: { type: String, required: true, enum: ['d2cStore', 'd2p', 'ehome', 'bm001'] },
    siteTitle: String,
    siteIconImgSrc: String,
    host: {},
    platformInfo: {
        pc: platformInfoSchema,
        weixin: platformInfoSchema,
        app: platformInfoSchema,
        pad: platformInfoSchema
    }
});
exports.default = mongoose.model('GlobalSetup', GlobalSetupSchema);
